package com.zhadafei.mvnbook.account.service;

import com.zhadafei.mvnbook.account.captcha.AccountCaptchaService;

public interface AccountService{
	//生成验证码的唯一标识
	String generateCaptchaKey() throws AccountServiceException;

	//根据标识符生成图片字节码
	byte[]generateCaptchaImage(String captchaKey) throws AccountServiceException;

	//注册
	void signUp(SignUpRequest signUpRequest) throws AccountServiceException;

	//激活码激活
	void activate(String activationNumber) throws AccountServiceException;
	
	//登录
	void login(String id,String password) throws AccountServiceException;
	
	public AccountCaptchaService getAccountCaptchaService();
}